#include <iostream>

using namespace std;

class Base
{
public:
    virtual void printA(void)
    {
        cout << "A" << endl;
    }
    virtual void printB(void)
    {
        cout << "B" << endl;
    }
public:
    int a;
};

class Chi:public Base
{
public:
    virtual void printB(void)
    {
        cout << "hello" << endl;
    }
};

int main(int argc, char **argv)
{
    Base b;
    Chi c;

    cout << sizeof(Base) << endl;
    cout << (void *)&b << endl;
    cout << (void *)main << endl;


    cout << endl;
    cout << (void *)&c << endl;
    cout << (void *)&(c.a) << endl;
    return 0;
}